/*
 * Copyright 2017 Baiyyy
 * @(#)PsZcdHzMapper.java
 */

package com.byyy.ccts.modules.cc.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.byyy.ccts.modules.cc.entity.ccts.PsZcdHz;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by DELL on 2018-6-14.
 */
public interface PsZcdMapper extends BaseMapper<PsZcdHz> {

    /** 从Lmis获取装车单信息 */
    List<PsZcdHz> getZcdHzFromLmis(@Param("zcdNoList") List<String> zcdNoList);

    /** 查询同一冷藏车内，尚未上传的单据 */
    List<PsZcdHz> queryNotYetUploadChillCarBill(String chillCar);

    /** 更新同一冷藏车内，尚未上传的单据的状态 */
    void updateUploadStateInCar(@Param("chillCar") String chillCar, @Param("beginDate") Date beginDate);

    List<PsZcdHz> selectByBarcodes(@Param("barcodes") List<String> barcodes);
}
